package com.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author cyt
 * @create 2020-06-07 10:33
 */
@Setter
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_order")
public class TOrder {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_id")
    private int userId;

    @TableField(value = "product_id")
    private int productId;

    @TableField(value = "count")
    private int count;

    @TableField(value = "status")
    private int status;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_COUNT = "count";

    public static final String COL_MONEY = "money";

    public static final String COL_STATUS = "status";
}
